#! /usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023-04-18 19:01
# @Author  : wsh
# @File    : sendcode_mapper.py
from model.db import reservoir_sensitivity
from util import get_email_code
def send_email_code(email) -> str:
    """

    :param email: 邮箱
    :return:
    """
    get_email_code()
    user = reservoir_sensitivity.query(TbUsers).filter_by(user_id=user_id).first()
    if not user:
        raise DataNotExist("用户")
    return user